<form method="post" id="change_password_form"
action="{{ is_privileges ? url('/server/privileges') : url('/user-password') }}" name="chgPassword" class="{{ is_privileges ? 'submenu-item' }}">
{{ get_hidden_inputs() }}
{% if is_privileges %}
    <input type="hidden" name="username" value="{{ username }}">
    <input type="hidden" name="hostname" value="{{ hostname }}">
{% endif %}
<fieldset id="fieldset_change_password">
    <legend{{ is_privileges ? ' data-submenu-label="Change password"' }}>{% trans 'Change password' %}</legend>
    <table class="data noclick">
        <tr>
            <td colspan="2">
                 <input type="radio" name="nopass" value="1" id="nopass_1" onclick="pma_pw.value = \'\'; pma_pw2.value = \'\'; this.checked = true">
                 <label for="nopass_1">{% trans 'No Password' %}</label>
            </td>
        </tr>
        <tr class="vmiddle">
            <td>
                <input type="radio" name="nopass" value="0" id="nopass_0" onclick="document.getElementById(\'text_pma_change_pw\').focus();" checked="checked">
                <label for="nopass_0">{% trans 'Password:' %}&nbsp;</label>
            </td>
            <td>
                {% trans 'Enter:' %}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="password" name="pma_pw" id="text_pma_change_pw" size="10" class="textfield"
                  onkeyup="Functions.checkPasswordStrength($(this).val(), $(\'#change_password_strength_meter\'), meter_obj_label = $(\'#change_password_strength\'),
                  CommonParams.get(\'user\'));"
                  {{ chg_evt_handler }}="nopass[1].checked = true">
                <span>Strength:</span>
                <meter max="4" id="change_password_strength_meter" name="pw_meter"></meter>
                <span id="change_password_strength" name="pw_strength">Good</span>
                <br>
                {% trans 'Re-type:' %}&nbsp;
                <input type="password" name="pma_pw2" id="text_pma_change_pw2" size="10" class="textfield" {{ chg_evt_handler }}="nopass[1].checked = true">
            </td>
            </tr>
